/*
 * @Descripttion: 此处放自定义扩展
 * @version: 
 * @Author: ada.wu
 * @Date: 2025-07-02 00:20:37
 * @LastEditors: ada.wu
 * @LastEditTime: 2025-07-03 21:27:58
 */

window.rootPath = (function (src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0, src.lastIndexOf("/") + 1);
})();
console.log('rootPath==',rootPath)
layui.config({
    base: rootPath + "lay-module/",
    version: true
}).extend({
    miniAdmin: "layuimini/miniAdmin", // layuimini后台扩展
    miniMenu: "layuimini/miniMenu", // layuimini菜单扩展
    miniDate: "layuimini/miniDate", // 日期扩展
    miniPage: "layuimini/miniPage", // layuimini 单页扩展
    miniAMap: "amap/miniAMap", // amap 地图扩展
    treetable: 'treetable-lay/treetable', //table树形扩展
    tableSelect: 'tableSelect/tableSelect', // table选择扩展
    echarts: 'echarts/echarts', // echarts图表扩展
    echartsTheme: 'echarts/echartsTheme', // echarts图表主题扩展
    wangEditor: 'wangEditor/wangEditor', // wangEditor富文本扩展
    layarea: 'layarea/layarea', //  省市县区三级联动下拉选择器
});